package com.jr.Service.Impl;

import com.jr.Dao.ILoginDao;
import com.jr.Dao.Impl.LoginDaoImpl;
import com.jr.Pojo.Users;
import com.jr.Service.ILoginService;

import java.util.ArrayList;

public class LoginServiceImpl implements ILoginService {
    ILoginDao ild = new LoginDaoImpl();

    @Override
    public boolean addUsers(Users users) {
        return ild.insertUsers(users)>0;
    }

    @Override
    public ArrayList<Users> queryPasswordByUsername(String username) {
        return ild.selectPasswordByUsername(username);
    }

    @Override
    public ArrayList<Users> queryAll() {
        return ild.selectAll();
    }


}
